
package com.example.routelink.gateway.entity;

public enum ResultEnum {

    ErrCommon(10001, "通用系统服务异常"),
    ErrRateLimiter(10002, "已被限流"),
    ErrSignature(10003, "验签失败"),
    ErrBlackList(10004, "IP在黑名单中"),
    ErrWhiteList(10005, "IP不在白名单中"),
    ErrEncryption(10006, "解密失败"),
    ErrSensitive(10007, "存在敏感词"),
    ErrIpLocation(10008, "IP识别失败"),
    ErrUpstreamServer(10009, "上游服务请求异常"),
    ErrPause(10010, "维护中");


    private final int code;

    private final String msg;

    ResultEnum(final int code, final String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
